package com.ara.x.model;


import com.ara.account.bean.AccountBean;
import com.ara.common.kernel.bean.BaseBean;
import com.ara.common.kernel.network.util.RxUtils;
import com.ara.x.contract.MainContract;
import com.ara.x.retrofit.MainApiHolder;

import io.reactivex.rxjava3.core.Flowable;

/**
 * Created by XieXin on 2021/5/18.
 * 主页 Model层
 */
public class MainModel implements MainContract.Model {
    @Override
    public Flowable<BaseBean<AccountBean>> login(String uuid) {
        return MainApiHolder.getMainApi().login(uuid).compose(RxUtils.handleResult());
    }

}
